﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NetDiskPRJ.Model
{
    [Serializable]
    public partial class NetDisk
    {
        public NetDisk()
        {
            FType = "F";
            FSize = 0M;
            FDate = DateTime.Now;
        }
        #region Model
        /// <summary>
        /// id
        /// </summary>
        public decimal FID
        {
            set;
            get;
        }
        /// <summary>
        /// 上级id
        /// </summary>
        public decimal? FParentID
        {
            set;
            get;
        }
        /// <summary>
        /// 文件/目录名
        /// </summary>
        public string FName
        {
            set;
            get;
        }
        /// <summary>
        /// 后缀名：对于目录来说，应填写NULL
        /// </summary>
        public string FSuffixName
        {
            set;
            get;
        }
        /// <summary>
        /// 类型:  D 目录  F 文件
        /// </summary>
        public string FType
        {
            set;
            get;
        }
        /// <summary>
        /// 字节大小：数据库保存字节大小，显示时需要转换成BYTE , KB，M或G
        /// </summary>
        public decimal FSize
        {
            set;
            get;
        }
        /// <summary>
        /// 上传时间 对文件夹来说，是创建时间
        /// </summary>
        public DateTime FDate
        {
            set;
            get;
        }
        /// <summary>
        /// 登录ID
        /// </summary>
        public string FLogID
        {
            set;
            get;
        }
        /// <summary>
        /// 单位编号
        /// </summary>
        public string FEntityNo
        {
            set;
            get;
        }
        public string FMD5
        {
            set;
            get;
        }
        #endregion Model


        #region 上传专用
        /// <summary>
        /// 最大分段数
        /// </summary>
        public int Maximum
        {
            set;
            get;
        }
        /// <summary>
        /// 当前分段数
        /// </summary>
        public int Step
        {
            set;
            get;
        }
        public string xz
        {
            set;
            get;
        }
        #endregion

        public string strSize
        {
            set;
            get;
        }

        /// <summary>
        /// 相对路径
        /// </summary>
        public string relPath
        {
            set;
            get;
        }
    }
}
